//
//  PointQueue.m
//  midiApp
//
//  Created by Laurent Novac on 18.02.11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "PointQueue.h"

@implementation PointQueue
@synthesize queue;
-(id)init{
	self=[super init];
	if(self){
		queue=[[NSMutableArray alloc]initWithCapacity:0];

	}
	return self;
}
-(void)pushElementToTail:(Position *)p{
	[queue insertObject:p atIndex:0];
}
-(Position *)popElementFromHead{
	NSEnumerator* enumerator=[queue objectEnumerator];
	Position *p=NULL;
	while (p=[enumerator nextObject]) {//to get the last element
		
	}
	return p;
}
-(void)emptyQueue{
	
}
- (void)dealloc {
	[queue release];
	[super dealloc];
	
}

@end
